<!DOCTYPE html>
<html >
<head >
  <meta charset="utf-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <title>{{$webName}}——后台登录页面</title>
  <!-- Tell the browser to be responsive to screen width -->
  <meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
  <!-- Bootstrap 3.3.6 -->
  <script type="text/javascript" src="{{asset('admin/plugins/jQuery/jQuery-2.2.0.min.js')}}"></script>
  <link rel="stylesheet" href="{{asset('admin/bootstrap/css/bootstrap.min.css')}}">
  <!-- Font Awesome -->
  <link rel="stylesheet" href="{{asset('admin/local/font-awesome-4.5.0/css/font-awesome.min.css')}}">
  <!-- Ionicons -->
  <link rel="stylesheet" href="https://cdn.bootcss.com/ionicons/2.0.1/css/ionicons.min.css">
  <!-- Theme style -->
  <link rel="stylesheet" href="{{asset('admin/dist/css/AdminLTE.min.css')}}">
  <!-- iCheck -->
  <link rel="stylesheet" href="{{asset('admin/plugins/iCheck/square/blue.css')}}">
</head>
<body class="hold-transition register-page" style="background-image:url('/admin/bglogin/1.jpg')">
<div class="register-box">
  <div class="register-logo">
     <b style="visibility:hidden">后台登录</b>
  </div>
  <div class="register-box-body" style="width:400px;">
    <p class="login-box-msg" style="font-size:30px;font-family:黑体;">后台登录</p>

    <form action="{{asset('admin/dologin')}}" method="post">
      {{csrf_field()}}
      @if(session('error'))
      <div  style="width:360px;border:1px solid red;height:26px;background-image:url('/admin/bglogin/2.png');background-repeat:no-repeat;background-position: 5px 2px;background-color:#EEF3FA">
          <div style="position:relative;top:1px;left:40px;color:red">{{session('error')}}</div>
      </div>
      <br>
      @elseif(count($errors) > 0)
      <div  style="width:360px;border:1px solid red;height:26px;background-image:url('/admin/bglogin/2.png');background-repeat:no-repeat;background-position: 5px 2px;background-color:#EEF3FA;float:left">
          @foreach ($errors->all() as $error)
             <div style="position:relative;top:1px;left:40px;color:red;float:left">{{ $error }}&nbsp;&nbsp;</div>
          @endforeach
      </div>
      <br><br>
     @endif
     
      <div class="form-group has-feedback">
        <input type="text" id="name" name="name" value="{{old('name')}}"  class="form-control" placeholder="用户名">
        <span class="glyphicon glyphicon-user form-control-feedback"></span>
      </div>
      <br>
      <div class="form-group has-feedback">
        <input type="password"  name="password"  class="form-control" placeholder="密码">
        <span class="glyphicon glyphicon-lock form-control-feedback"></span>
      </div>
      <br>
      <div class="row">
        <!-- /.col -->
        <div class="col-xs-4">
          <button type="submit" style="margin-left:135px;" class="btn btn-primary btn-block btn-flat">登 录</button>
        </div>
        <!-- /.col -->
      </div>
    </form>
  </div>
  <!-- /.form-box -->
</div>
<!-- /.register-box -->

<!-- jQuery 2.2.0 -->
<script src="{{asset('/admin/plugins/jQuery/jQuery-2.2.0.min.js')}}"></script>
<!-- Bootstrap 3.3.6 -->
<script src="{{asset('/admin/bootstrap/js/bootstrap.min.js')}}"></script>
<!-- iCheck -->
<script src="{{asset('/admin/plugins/iCheck/icheck.min.js')}}"></script>
<script>
  $(function () {
    $('input').iCheck({
      checkboxClass: 'icheckbox_square-blue',
      radioClass: 'iradio_square-blue',
      increaseArea: '20%' // optional
    });
  });
</script>
</body>
</html>
